#ifndef _BUTTON_H
#define _BUTTON_H

#include "my_sys.h"

typedef enum
{
    PressIdle =0,
    PressShort,
    PressLong,
}Button_Enum;

typedef struct 
{
    uint32_t StartPressTick;
    uint8_t StartPressFlag;
    Button_Enum PressEvent;
}ButtonType;

void ButtonLoop(uint16_t Cycle);
Button_Enum AskButtonEvent(uint8_t ButtonNum);




#endif


